<template>
	<view class="">
		<!-- 搜索 -->
		<view class="search-cont">
			<view class="search-code"><image src="../../../static/tabImg/saoma.svg" mode="widthFix"></image></view>
			<view class="search">
				<image src="../../../static/tabImg/sousuo.svg" mode="widthFix" class="search-image"></image>
				<input type="text" placeholder="请输入文字..." value="" />
			</view>
			<view class="search-code"><image src="../../../static/tabImg/xiaoxi.svg" mode="widthFix"></image></view>
		</view>
		<!-- 轮播 -->
		<view class="">
			<swiper
				class="swiper"
				:indicator-dots="true"
				:autoplay="true"
				:interval="3000"
				:duration="1000"
				circular
				indicator-color="rgb(255,255,255)"
				indicator-active-color="#00ff00"
			>
				<swiper-item v-for="(item,index) in banner" :key="index"><image class="imageurl" :src="item.image" mode="aspectFill"></image></swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
export default {
	name: 'serch',
	props:{
		banner:Array
	},
	data() {
		return {
		};
	}
};
</script>

<style scoped>
/* 不要使用id选择器 */
.search-code image {
	width: 50upx;
	height: 50upx;
}
.search-code {
	width: 50upx;
	height: 50upx;
	padding: 0 15upx;
}
/* 搜索框 */
.search {
	height: 70upx;
	width: 100%;
	line-height: 70upx;
	display: flex;
	flex-direction: row;
	background-color: rgb(255, 247, 212);
	border-top-left-radius: 50upx;
	border-bottom-left-radius: 50upx;
	border-bottom-right-radius: 50upx;
}
.search-image {
	width: 40upx;
	height: 40upx;
	margin: auto 0 auto 20upx;
}
.search > input {
	height: 70upx;
	line-height: 70upx;
	width: 100%;
	font-size: 30upx;
	color: #666666;
	padding-left: 20upx;
}
.search-cont {
	display: flex;
	justify-content: space-between;
	height: 70upx;
	align-items: center;
	background-image: linear-gradient(to top, #ffe566 10%, #ffd300 100%);
	padding: 30upx 0;
}

/* swiper处理 */
.imageurl {
	width: 100%;
	height: 300upx !important;
}
swiper {
	height: 300upx !important;
}
</style>
